package com.fxd.dao;

import com.fxd.domain.account;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @auther fuxudong
 * @date 2021/2/7 - 12:07
 */
@Repository
public interface accountDao {

    @Select("select * from account")
    public List<account> findAll();

    @Insert("insert into account(name,money) values (#{name},#{money})")
    abstract public  void  saveAccount(account account);
}
